// MIDINote holds the note name, duration and other parameters

class MIDINote {
  String noteName;
  int key;
  int velocity;
  float duration;
  long startTick;
  long endTick;
  boolean closed;

  MIDINote(String noteName, int key, int velocity, long startTick) {
    this.noteName = noteName;
    this.key = key;
    this.velocity = velocity;
    this.startTick = startTick;
    this.closed = false;
  }

  void setDuration(int value) {
    this.duration = value;
  }

  MIDINote(MIDINote another) {
    this.noteName = another.noteName;
    this.key = another.key;
    this.velocity =  another.velocity;
    this.duration = another.duration;
    this.startTick = another.startTick;
    this.endTick = another.endTick;
    this.closed = another.closed;
  }
}

